<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>随机发放水果</title>
	</head>
	<body>
		<script>
			var friuts =["苹果","梨子","香蕉","樱桃","水蜜桃"];
			var f = Math.ceil(Math.random()*5)-1;
			document.write("你得到的水果是：" + friuts[f]);
		</script>
	</body>
</html>
